const {con} = require('../db/db');

async function getTextrueFile(fileName) {
    const sql = `select textrue_src from textrue where textrue_name="${fileName}";`;

    let [rows] = await con.execute(sql);

    return rows[0].textrue_src;
}

async function getModelFile(fileName) {
    const sql = `select model_src from model where model_name="${fileName}";`;

    let [rows] = await con.execute(sql);

    return rows[0].model_src;
}

module.exports={
    getTextrueFile,
    getModelFile
}